import 'package:flutter/material.dart';
import 'package:wanxiang_app/utils/constant.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class SellTipDialog extends Dialog {
  ClickCallBack callBack;

  SellTipDialog({required this.callBack} );

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Container(
          alignment: Alignment.center,
          child:    Container(
              height: 401.h,
              width: 328.w,
              decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(10.r),
                  gradient: const LinearGradient(      //渐变位置
                      begin: Alignment.topCenter, //右上
                      end: Alignment.bottomCenter, //左下
                      stops: [0.0, 1.0],         //[渐变起始点, 渐变结束点]
                      //渐变颜色[始点颜色, 结束颜色]
                      colors: [Color.fromRGBO(96, 175, 242, 1), Color.fromRGBO(190, 224, 255, 1)]
                  )
              ),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  Image.asset(Constant.IMG_BASE+"tab_left.png",width: 328.w,height: 50.h,),
                  Container(
                    decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.circular(6.r)
                    ),
                    child: Column(
                      children: [
                        Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          children: [
                            Image.asset(Constant.IMG_BASE+"item_new.png",width: 21.w,height: 15.h,),
                            SizedBox(width: 15.w,),
                            Text('自行出售流程',style: TextStyle(
                              color: Color(0xFF308AD8),
                              fontSize: 15.sp
                            ),),
                            SizedBox(width: 15.w,),
                            Image.asset(Constant.IMG_BASE+"item_new.png",width: 21.w,height: 15.h,),

                            Container(
                              padding: EdgeInsets.fromLTRB(18.w, 9.h, 18.w, 9.h),
                              decoration: const BoxDecoration(
                                color: Color(0xFFEBF5FF)
                              ),
                              child:  Text('卖家自行填写商品信息、商品截图等发布到官方平台；',style: TextStyle(
                                color: Color(0xFF308AD8),
                                  fontSize: 13.sp
                              ),),
                            ),
                            Container(
                              padding: EdgeInsets.fromLTRB(18.w, 9.h, 18.w, 9.h),
                              decoration: const BoxDecoration(
                                  color: Color(0xFFEBF5FF)
                              ),
                              child:  Text('等待官方审核所填商品与实际是否相符',style: TextStyle(
                                  color: Color(0xFF308AD8),
                                  fontSize: 13.sp
                              ),),
                            ),
                            Container(
                              padding: EdgeInsets.fromLTRB(18.w, 9.h, 18.w, 9.h),
                              decoration: const BoxDecoration(
                                  color: Color(0xFFEBF5FF)
                              ),
                              child:  Text('审核通过后，等待买家下单',style: TextStyle(
                                  color: Color(0xFF308AD8),
                                  fontSize: 13.sp
                              ),),
                            ),

                            Container(
                              padding: EdgeInsets.fromLTRB(18.w, 9.h, 18.w, 9.h),
                              decoration:  BoxDecoration(
                                borderRadius: BorderRadius.circular(6.r),
                                  color: Color(0xFF007BE5)
                              ),
                              child:  Text('立即出售',style: TextStyle(
                                  color: Colors.white,
                                fontSize: 13.sp
                              ),),
                            ),


                          ],
                        )
                      ],
                    ),
                  )
                ],
              )
          )
        )

    );
  }
}